import React, { Component } from 'react';

import Chart from '@/components/widget/Chart.jsx'

export default class ChartGroup extends Component{
	constructor (props) {
		super(props)
		this.state = {
			contentNumber: 0,
		}
	}
	render () {
		let data1 = {data: this.props.data[0].data, type: 'pie'}
		let data2 = {time: this.props.data[1].data.time, data: this.props.data[1].data.total_number, type: 'line'}
		return (
			<div>
				<Chart name='客户兴趣占比' data={data1} myclassName='chart5'/>
    			<Chart name='近两周活跃度' data={data2} myclassName='chart1'/>
			</div>
		)
	}
}